<template>
    <span slot="left" @click="goBack" v-show="flag">
		<mt-button icon="back">返回</mt-button>
	</span>
</template>
<script>
export default {
    data(){
        return {
            flag: true  
        }
    },
    methods:{
			goBack(){
				// alert('aa')
				// console.log(typeof this.$route.path)
				this.$router.go(-1);

			}
    },
    created(){
        	if(this.$route.path === "/home"){
				this.flag = false;
			}
    }
}
</script>
<style lang="scss" scoped>
    
</style>
